package com.cskaoyan.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;
import java.util.Map;

@Data
@ConfigurationProperties(prefix = "cskaoyan.db")
//@Component
public class DataSourceProperties {
    String driverClassName;
    String url;
    String username = "root";
    String password = "123456";
    boolean open;
    Integer maxSize;

    //有两种方式可以表达
    String[] array1;
    String[] array2;
    List list1;
    List list2;
    //有两种方式表达
    Map map1;
    Map map2;
    User user1;
    User user2;
}
